$(document).ready(function () {

    //患者建议
    $.ajax({
        url: serverApi3 + "/OmsAdvise/selectById?id=" + $.cookie('tempId'),
        type: "POST",
        success: function (result) {
            if (result.code === 200) {
                //赋值
                $(".doctorName").html(result.data.doctorName)
                $(".createTime").html(result.data.createTime)
                $(".advise").html(result.data.content)
                //检查是否有图片
                let pic = result.data.pic;
                if (pic !== null && pic !== "") {
                    $(".picShow").css("display", "")
                    $(pic.split(",")).each(function (index, element) {
                        $(".pic").append('<img width="100px" src="' + element + '">')
                    })
                }
            }
        }
    });
});